var UserLogin = {
	login : function(publicKeyExponent, publicKeyModulus) {
		var username = $("#userName").val();
		var password = $("#password").val();
		var password_Encrypt = UserLogin.RSA_Encrypt(publicKeyExponent,
				publicKeyModulus, password);
		$("#password").val(password_Encrypt);
		$("#form").submit();
	},
	RSA_Encrypt : function(publicKeyExponent, publicKeyModulus, password) {
		setMaxDigits(20);
		var key = RSAUtils.getKeyPair(publicKeyExponent, "", publicKeyModulus);
		var result = RSAUtils
				.encryptedString(key, encodeURIComponent(password));
		return result;
	}
}